package util;

public class KeyboardInput {
    
    public static double toggle(int keyPressed, int keyEvent, double current, double original) {
        if (keyPressed == keyEvent && current != 0) {
            current = 0;
        }
        else if (keyPressed == keyEvent) {
            current = original;
        }
        return current;
    }
    
    public static void printStatus(double gravity, double viscosity, double center, double wallUp,
            double wallRight, double wallDown, double wallLeft, int edge) {
        System.out.println("Gravity:               " + gravity);
        System.out.println("Viscosity:             " + viscosity);
        System.out.println("Center of Mass:        " + center);
        System.out.println("Top Wall Repulsion:    " + wallUp);
        System.out.println("Right Wall Repulsion:  " + wallRight);
        System.out.println("Bottom Wall Repulsion: " + wallDown);
        System.out.println("Left Wall Repulsion:   " + wallLeft);
        System.out.println("Wall Padding Size:     " + edge);
        System.out.println();
    }
}
